package com.niuwa.p2p.core.file;

import com.niuwa.p2p.core.utils.PropertiesUtil;
import com.niuwa.p2p.entity.nwfile.NWFile;

public interface NWFileBuilder {
	
	String PUBLIC_FILE_PATH_KEY ="system.publicFilePath";
	
	String PRIVATE_FILE_PATH_KEY ="system.privateFilePath";
	
	String TEMP_FILE_PATH_KEY ="system.tempFilePath";
	
	String PUBLIC_FOLDER = PropertiesUtil.getProperty(PUBLIC_FILE_PATH_KEY);
	
	String PRIVATE_FOLDER = PropertiesUtil.getProperty(PRIVATE_FILE_PATH_KEY);
	
	String TEMP_FOLDER = PropertiesUtil.getProperty(TEMP_FILE_PATH_KEY);
	
	public void init() throws Exception;

	public String getTempFilePath();
	
	public String getFileName();
	
	public String getFilePath();
	
	public String getFileType();
	
	public NWFile generateNWFile()throws Exception;
}
